FOR %%file in ("*.gif") DO echo %%file